Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with multiple solvers #363

Merged
merged 4 commits into from
Nov 7, 2024
Merged

Issue with multiple solvers #363

merged 4 commits into from
Nov 7, 2024

Conversation

alphaville
Copy link
Owner

@alphaville alphaville commented Nov 4, 2024

Main Changes

  • Making some casadi-generated functions static (e.g., casadi_sq and casadi_fmin)

Associated Issues

TODOs

  • Documentation
  • All tests must pass
  • Update CHANGELOG(s)
  • Update webpage documentation
  • Bump versions (in CHANGELOG, Cargo.toml and VERSION)

@alphaville alphaville self-assigned this Nov 4, 2024
@alphaville alphaville added python issue related to python linux-ubuntu Ubuntu OS labels Nov 4, 2024
@wrseif
Copy link

wrseif commented Nov 4, 2024

@alphaville it seems to work with these changes, thanks.
however the only functions that i needed to make static are casadi_fabs, casadi_fmax, casadi_sq, casadi_fmin but i noticed you also added casadi_hypot, casadi_sign.

is it possible there's additional functions that may cause issues depending on the casadi functions used?

@alphaville
Copy link
Owner Author

is it possible there's additional functions that may cause issues depending on the casadi functions used?

I'll double-check

@alphaville
Copy link
Owner Author

@wrseif I've looked into the code generator of CasADi and it seems that the functions to take into account are:

fncs_list = ["casadi_sq", "casadi_fmax",
    "casadi_fmin", "casadi_hypot", "casadi_sign",
    "casadi_log1p", "casadi_expm1"]

About:
According to code_generator.cpp (Casadi), the functions to
be made static are casadi_sq, casadi_fmax,
casadi_fmin, casadi_hypot, casadi_sign,
casadi_log1p, and casadi_expm1; all done
@alphaville alphaville marked this pull request as ready for review November 5, 2024 15:34
Remove unnecessary imports (fileinput, warning, datetime)
and update CHANGELOG and VERSION (opengen)
Copy link
Collaborator

@ruairimoran ruairimoran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@alphaville alphaville merged commit 841c913 into master Nov 7, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux-ubuntu Ubuntu OS python issue related to python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple solvers cause compiling issue on ubuntu (works fine on mac)
3 participants